﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
using System.Configuration;
using System.Globalization;
//using iTextSharp.text;
//using iTextSharp.text.pdf;
//using iTextSharp.text.html.simpleparser;
//using System.IO;
//using System.Text;

public partial class _CertificadoImpressao : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {   
        if(!Page.IsPostBack)
        {
            string mesExtenso;
            string month = new CultureInfo("pt-BR").DateTimeFormat.GetMonthName(DateTime.Now.Month);
            mesExtenso = char.ToUpper(month[0]) + month.Substring(1);

            this.lblData.Text = "Recife, " + DateTime.Now.Day.ToString().PadLeft(2, '0') + " de " + mesExtenso + " de " + DateTime.Now.Year;

            this.lblTituloTrabalho.Text = Session["Trabalho"].ToString();
            this.lblNomeAutor.Text = Session["NomeAutor"].ToString();

            if (Session["CoAutor"].ToString() != null && !Session["CoAutor"].ToString().Equals(""))
            {
                this.lblCoAutorInfo.Visible = true;
                this.lblCoAutorNomes.Visible = true;
                this.lblCoAutorNomes.Text = Session["CoAutor"].ToString();
            }
        }
    }
}
